import ajax from '@/common/js/ajax';

// 获取微信签名
export const getWechatSignature = (query, showLoad) => ajax.get('/wxpublic/getWechatSignature', query, showLoad);

// 通过mainboardId查询机器
export const queryByMainBoardId = (query, showLoad) => ajax('/machine/queryByMainBoardId', query, showLoad);

// 获取柜子列表
export const getCellByMainboardId = (query, showLoad) => ajax('/machine/getCellByMainboardId', query, showLoad);

// 查询订单支付接口
export const queryOrderPayAmount = (query, showLoad) => ajax('/order/queryOrderPayAmount', query, showLoad);

// 支付接口
export const makePayOrder = (query, showLoad) => ajax.post('/api/pay/makePayOrder', query, showLoad);


// 获取用户订单列表
export const queryUserOrder = (query, showLoad) => ajax('/order/queryUserOrder', query, showLoad);

// 开柜
export const openCell = (query, showLoad) => ajax.post('/machine/openCell', query, showLoad);

// 关闭订单
export const closeOrder = (query, showLoad) => ajax('/order/close', query, showLoad);

// 订单详情
export const queryOrderbyId = (query, showLoad) => ajax('/order/queryOrderbyId', query, showLoad);


// 查询用户信息
export const queryUserById = (query, showLoad) => ajax('/user/queryUserById', query, showLoad);

// 修改用户信息
export const editUser = (query, showLoad) => ajax.put('/user/edit', query, showLoad);

// 用户提现
export const userWithdrawal = (query, showLoad) => ajax.post('/user/userWithdrawal', query, showLoad);

// 商务申请
export const addBusinessApplication = (query, showLoad) => ajax.post('/user/addBusinessApplication', query, showLoad);

// 投诉建议
export const addComplaint = (query, showLoad) => ajax.post('/user/addComplaint', query, showLoad);

// 意见列表
export const queryComplaint = (query, showLoad) => ajax.post('/user/queryComplaint', query, showLoad);
